<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<div id="app">
    <qingjiang v-for="item in items" v-bind:qin="item"></qingjiang>
</div>


<!--导入vue。js-->
<script>
  //定义一个Vue组件component
  Vue.component("qingjiang",{
    props:['qin'],
    template:'<li>{{qin}}</li>'
  })

  var vm = new Vue(
          {
            el:"#app",
            data:{
              items:["java","linux","前端"]
            }
          }
  );


</script>
</body>
</html>